package com.source.sys.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZZF
 * @since 2021-02-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_popedom")
@ApiModel(value="权限表", description="")
public class Popedom implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限id")
    @TableId(value = "pid", type = IdType.ASSIGN_UUID)
    private String pid;

    @ApiModelProperty(value = "父级id")
    @TableField("parentId")
    private String parentId;

    @ApiModelProperty(value = "名称")
    @TableField("pname")
    private String pName;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "链接")
    @TableField("href")
    private String href;

    @ApiModelProperty(value = "目标")
    @TableField("target")
    private String target;

    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "0否，1是")
    @TableField("isShow")
    private Integer isShow;

    @ApiModelProperty(value = "权限标识")
    @TableField("permission")
    private String permission;

    @ApiModelProperty(value = "备注信息")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "更新者")
    @TableField("updateBy")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateDate", fill = FieldFill.UPDATE)
    private Date updateDate;

    public Popedom(String parentId, String pName, Integer sort, String href, String target, String icon, Integer isShow, String permission, String remarks) {
        this.parentId = parentId;
        this.pName = pName;
        this.sort = sort;
        this.href = href;
        this.target = target;
        this.icon = icon;
        this.isShow = isShow;
        this.permission = permission;
        this.remarks = remarks;
    }
}
